//
//  StatusBottomView.swift
//  sinaWeibo
//
//  Created by 张国梁 on 16/4/14.
//  Copyright © 2016年 CoderGL. All rights reserved.
//

import UIKit

class StatusBottomView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        
        addSubview(retweetBtn)
        addSubview(commentBtn)
        addSubview(likeBtn)
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        
        self.xmg_HorizontalTile([retweetBtn, commentBtn, likeBtn], insets: UIEdgeInsetsZero)
    }
    
    
    private lazy var retweetBtn = UIButton.createButton("timeline_icon_retweet", backgroundImgName:"timeline_card_bottom_background", title: "转发")
    private lazy var commentBtn = UIButton.createButton("timeline_icon_comment", backgroundImgName: "timeline_card_bottom_background", title: "评论")
    private lazy var likeBtn = UIButton.createButton("timeline_icon_unlike", backgroundImgName: "timeline_card_bottom_background", title: "赞")

}
